<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文档标题</title>
    <script>

      const grades = [65, 68, 75, 80, 81, 82, 86, 88, 92, 95];

      const sum = grades.reduce((pre, cur) => {
        pre += cur;
        return pre;
      }, 0);
      const avg = sum / grades.length;
      console.log("average>>", avg)
    </script>
</head>
<body>
<h1>我的第一个HTML页面</h1>
<p>我的第一个段落。</p>
</body>
</html>
